﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace BONGDA
{
    public partial class BONGDA : Form
    {
        public BONGDA()
        {
            InitializeComponent();
        }

        private void btnHome_Click(object sender, EventArgs e)
        {
            frmOutHome frm = new frmOutHome();
            frm.TopLevel = false;
            frm.AutoScroll = true;
            frm.FormBorderStyle = FormBorderStyle.None;
            panelShow.Controls.Clear();
            this.panelShow.Controls.Add(frm);
            frm.Show();
        }

        private void BONGDA_Load(object sender, EventArgs e)
        {

        }

        private void xButton3_Click(object sender, EventArgs e)
        {
            frmLeagueTable frm = new frmLeagueTable();
            frm.TopLevel = false;
            frm.AutoScroll = true;
            frm.FormBorderStyle = FormBorderStyle.None;
            panelShow.Controls.Clear();
            this.panelShow.Controls.Add(frm);
            frm.Show();
        }

        private void xButton4_Click(object sender, EventArgs e)
        {
            frmMatch2 frm = new frmMatch2();
            frm.TopLevel = false;
            frm.AutoScroll = true;
            frm.FormBorderStyle = FormBorderStyle.None;
            panelShow.Controls.Clear();
            this.panelShow.Controls.Add(frm);
            frm.Show();
        }

        private void xButton5_Click(object sender, EventArgs e)
        {
            frmTopScorers frm = new frmTopScorers();
            frm.TopLevel = false;
            frm.AutoScroll = true;
            frm.FormBorderStyle = FormBorderStyle.None;
            panelShow.Controls.Clear();
            this.panelShow.Controls.Add(frm);
            frm.Show();
        }

        private void xButton2_Click(object sender, EventArgs e)
        {
            frmDoiBong frm = new frmDoiBong();
            frm.TopLevel = false;
            frm.AutoScroll = true;
            frm.FormBorderStyle = FormBorderStyle.None;
            panelShow.Controls.Clear();
            this.panelShow.Controls.Add(frm);
            frm.Show();
        }

        private void xButton6_Click(object sender, EventArgs e)
        {
            frmReferee frm = new frmReferee();
            frm.TopLevel = false;
            frm.AutoScroll = true;
            frm.FormBorderStyle = FormBorderStyle.None;
            panelShow.Controls.Clear();
            this.panelShow.Controls.Add(frm);
            frm.Show();
        }

        private void xButton1_Click(object sender, EventArgs e)
        {
            this.Hide();
            frmLogin frm = new frmLogin();
            frm.ShowDialog();
            this.Close();
        }

        private void btnCauThu_Click(object sender, EventArgs e)
        {
            frmFootballer frm = new frmFootballer();
            frm.TopLevel = false;
            frm.AutoScroll = true;
            frm.FormBorderStyle = FormBorderStyle.None;
            panelShow.Controls.Clear();
            this.panelShow.Controls.Add(frm);
            frm.Show();
        }

        private void btnSanVanDong_Click(object sender, EventArgs e)
        {
            frmTours frm = new frmTours();
            frm.TopLevel = false;
            frm.AutoScroll = true;
            frm.FormBorderStyle = FormBorderStyle.None;
            panelShow.Controls.Clear();
            this.panelShow.Controls.Add(frm);
            frm.Show();
        }
    }
}
